Repository navigation
fix(id/directory): correlate removal artifacts with their own journal entries by hash; note no-effect receipts (#5624) - #7339
Closed
developing-today[bot] wants to merge 7 commits into
Closed
developing-today[bot] wants to merge 7 commits into
developing-today[bot] wants to merge 7 commits into
Conversation
added 7 commits
November 5, 2026 07:58
… legacy removals (#5624) Directory::receive now refuses a friend-request envelope whose ID is not the canonical shape the producer mints (16 bytes as 32 lowercase hex, artifact::is_friend_request_id) before anything is persisted, so a correctly signed noncanonical ID can no longer be admitted and strand the friendship at friend_remove receipt (#3146). remove_friend keeps the legacy path safe without weakening #3146: the signed FriendRemove artifact carries only canonical IDs (receiving servers still end the friendship by pair), while the local FriendRemoved entry carries every stored ID verbatim so pre-validation IDs are voided in removed_requests instead of making the removal unrepresentable. Regression tests: noncanonical admission refused and never persisted; a friendship formed by a legacy noncanonical request (and a pending one) can be removed, with the artifact still parsing under the strict contract. Oracle: the canonical-shape invariant minted by Envelope::signed.
Codex P2 on the #5624 PR: replay_read_only only applied a removal whose requests named the friendship formed-by ID, but a legacy removal artifact cannot name a noncanonical formed-by ID (#3146), so replicas kept the friendship. Apply the removal by pair when the friendship was formed by a noncanonical ID, mirroring writer open. Regression test: legacy removal takes effect on read-only replay (and writer open) when its journal entry is lost.
…ending legacy cancellations propagate (#5624) Codex round-2 on PR #6239: (1) recovery (open + replay_read_only, now sharing friend_removal_effect) no longer ends a newer legacy friendship for an older canonical removal artifact - a non-empty request list that does not name the current formed-by ID targets an earlier formation; the legacy bypass is only the empty-request signature. (2) Empty-request artifacts now cancel locally held legacy pending IDs in receive_artifact and in recovery, carrying them verbatim into removed_requests; legacy friendship removals received likewise void the pair stored IDs. (3) CodeRabbit: friend-request ID shape check in receive() moved below the seen duplicate lookup. Tests: 3 new regression tests; directory::tests 59 passed, full pkgs/id lib suites pass.
…s; add property coverage (#5624)
… entries by hash; note no-effect receipts (#5624)
developing-today
Bot
requested review from
a team and
dezren39
as code owners
November 8, 2026 06:09
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
Member
Member
|
🤖 Agent note · salvage verdict for closed PR #7339: remainder OBSOLETE — the work is on main via PR #6239
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Archive-branch disposition (Drew's 2026-11-07 21:57 CST correction) for branch
archive/janitor-2026-11-07/10521.This archive branch was created by the janitor/repo-keeper sweep, not by any preservation decision. Per the correction, archive branches enter the normal disposition pipeline: the useful changes are reviewed and extracted here — this PR is the permanent preservation record for the branch's commits and diff ("ensure you opened a pr so branch exists forever"). Outcome per batch triage (batch issue #7297): FINISH the work and MERGE this PR, or CLOSE it with the record standing (closed-with-record is a valid end state; the changes remain recoverable from this PR). The branch was deleted after this PR was opened; its tip SHA is in the execution evidence.
Content: 7 unique commit(s) vs main; authored-file diff 2/2 (authored/total files). Pure build output/fixtures in the branch, if any, are discarded-bulk and are not the extraction target — the authored files (code, scripts, markdown, docs) are.
Tip: 7a3621a · tree: c92abda0dbb039c315c8cffa37b5865edd82e246
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.